Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
|
[Save]
|
what, no two's complement?
|
|
Maurits
Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
|
|
|
... good catch Added hack to handle two's complement
EDIT:
Before: C:\>tohex -2147483648 -0x-80000000
After: C:\>tohex -2147483648 -0x80000000
|
Of course the big question is, how is this easier than firing up calc.exe (especially since there's a button on my keyboard that fires up calc.exe)?
|
|
Maurits
Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
|
|
|
It's not easy to use calc.exe if you're a service
|
True, that.
|
-999 in hex is FFFFFC19 - no?
Here is how you might do the same using PowerShell:
PS C:\> (-999).ToString("x") fffffc19
|
|
Maurits
Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
|
|
|
| staceyw wrote: -999 in hex is FFFFFC19 - no? |
Sure, on a 32-bit machine.
|
|
|